


from subprocess import list2cmdline
from typing import Any, List


def pad_inner_lists_of_2d_list(nested_list:list, pad_value:Any):
    max_len = max([len(list) for list in nested_list])
    for inner_list in nested_list:
        num_to_pad = max_len - len(inner_list)
        inner_list.extend([pad_value] * num_to_pad)
    return nested_list